<div class="panel panel-default">
	<div class="panel-heading">
		<?php 
			$this->widget('system.zii.widgets.CBreadcrumbs',array(
					'links'=>array(
							'后台管理',
							'编辑友情链接'
			)
			));
		?>
	</div>
	<div class="panel-body">
		<?php $form = $this->beginWidget('CActiveForm', array(
				'htmlOptions'=>array('class'=>'form-horizontal')
		));?>
			<div class="form-group">
				<?php 
					echo $form->labelEx($model,'links_name', array('class'=>'col-sm-2 control-label'));
				?>
				<div class="col-sm-4">
					<?php 
						echo $form->textField($model, 'links_name', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($model, 'links_name');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($model, 'links_url', array('class'=>'col-sm-2 control-label'));
				?>
				<div class="col-sm-4">
					<?php 
						echo $form->textField($model, 'links_url', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($model, 'links_url');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($model, 'sort', array('class'=>'col-sm-2 control-label'));
				?>
				<div class="col-sm-2">
					<?php 
						echo $form->textField($model, 'sort', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($model, 'sort');
					?>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 col-sm-offset-2">
					<input type="submit" class="btn btn-default" value="添加" />
				</div>
			</div>
		<?php $this->endWidget(); ?>
	</div>
</div>